package com.knowif.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OfferInterviewCommentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OfferInterviewCommentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * offer，面经评论表
     * 
     * @author wcyong
     * 
     * @date 2020-06-14
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdIsNull() {
            addCriterion("commentator_id is null");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdIsNotNull() {
            addCriterion("commentator_id is not null");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdEqualTo(Integer value) {
            addCriterion("commentator_id =", value, "commentatorId");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdNotEqualTo(Integer value) {
            addCriterion("commentator_id <>", value, "commentatorId");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdGreaterThan(Integer value) {
            addCriterion("commentator_id >", value, "commentatorId");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("commentator_id >=", value, "commentatorId");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdLessThan(Integer value) {
            addCriterion("commentator_id <", value, "commentatorId");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdLessThanOrEqualTo(Integer value) {
            addCriterion("commentator_id <=", value, "commentatorId");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdIn(List<Integer> values) {
            addCriterion("commentator_id in", values, "commentatorId");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdNotIn(List<Integer> values) {
            addCriterion("commentator_id not in", values, "commentatorId");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdBetween(Integer value1, Integer value2) {
            addCriterion("commentator_id between", value1, value2, "commentatorId");
            return (Criteria) this;
        }

        public Criteria andCommentatorIdNotBetween(Integer value1, Integer value2) {
            addCriterion("commentator_id not between", value1, value2, "commentatorId");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameIsNull() {
            addCriterion("commentator_name is null");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameIsNotNull() {
            addCriterion("commentator_name is not null");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameEqualTo(String value) {
            addCriterion("commentator_name =", value, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameNotEqualTo(String value) {
            addCriterion("commentator_name <>", value, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameGreaterThan(String value) {
            addCriterion("commentator_name >", value, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameGreaterThanOrEqualTo(String value) {
            addCriterion("commentator_name >=", value, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameLessThan(String value) {
            addCriterion("commentator_name <", value, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameLessThanOrEqualTo(String value) {
            addCriterion("commentator_name <=", value, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameLike(String value) {
            addCriterion("commentator_name like", value, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameNotLike(String value) {
            addCriterion("commentator_name not like", value, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameIn(List<String> values) {
            addCriterion("commentator_name in", values, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameNotIn(List<String> values) {
            addCriterion("commentator_name not in", values, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameBetween(String value1, String value2) {
            addCriterion("commentator_name between", value1, value2, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentatorNameNotBetween(String value1, String value2) {
            addCriterion("commentator_name not between", value1, value2, "commentatorName");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNull() {
            addCriterion("parent_id is null");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNotNull() {
            addCriterion("parent_id is not null");
            return (Criteria) this;
        }

        public Criteria andParentIdEqualTo(Integer value) {
            addCriterion("parent_id =", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotEqualTo(Integer value) {
            addCriterion("parent_id <>", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThan(Integer value) {
            addCriterion("parent_id >", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("parent_id >=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThan(Integer value) {
            addCriterion("parent_id <", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThanOrEqualTo(Integer value) {
            addCriterion("parent_id <=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdIn(List<Integer> values) {
            addCriterion("parent_id in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotIn(List<Integer> values) {
            addCriterion("parent_id not in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdBetween(Integer value1, Integer value2) {
            addCriterion("parent_id between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("parent_id not between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdIsNull() {
            addCriterion("be_commentator_id is null");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdIsNotNull() {
            addCriterion("be_commentator_id is not null");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdEqualTo(Integer value) {
            addCriterion("be_commentator_id =", value, "beCommentatorId");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdNotEqualTo(Integer value) {
            addCriterion("be_commentator_id <>", value, "beCommentatorId");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdGreaterThan(Integer value) {
            addCriterion("be_commentator_id >", value, "beCommentatorId");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("be_commentator_id >=", value, "beCommentatorId");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdLessThan(Integer value) {
            addCriterion("be_commentator_id <", value, "beCommentatorId");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdLessThanOrEqualTo(Integer value) {
            addCriterion("be_commentator_id <=", value, "beCommentatorId");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdIn(List<Integer> values) {
            addCriterion("be_commentator_id in", values, "beCommentatorId");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdNotIn(List<Integer> values) {
            addCriterion("be_commentator_id not in", values, "beCommentatorId");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdBetween(Integer value1, Integer value2) {
            addCriterion("be_commentator_id between", value1, value2, "beCommentatorId");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorIdNotBetween(Integer value1, Integer value2) {
            addCriterion("be_commentator_id not between", value1, value2, "beCommentatorId");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameIsNull() {
            addCriterion("be_commentator_name is null");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameIsNotNull() {
            addCriterion("be_commentator_name is not null");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameEqualTo(String value) {
            addCriterion("be_commentator_name =", value, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameNotEqualTo(String value) {
            addCriterion("be_commentator_name <>", value, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameGreaterThan(String value) {
            addCriterion("be_commentator_name >", value, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameGreaterThanOrEqualTo(String value) {
            addCriterion("be_commentator_name >=", value, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameLessThan(String value) {
            addCriterion("be_commentator_name <", value, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameLessThanOrEqualTo(String value) {
            addCriterion("be_commentator_name <=", value, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameLike(String value) {
            addCriterion("be_commentator_name like", value, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameNotLike(String value) {
            addCriterion("be_commentator_name not like", value, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameIn(List<String> values) {
            addCriterion("be_commentator_name in", values, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameNotIn(List<String> values) {
            addCriterion("be_commentator_name not in", values, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameBetween(String value1, String value2) {
            addCriterion("be_commentator_name between", value1, value2, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andBeCommentatorNameNotBetween(String value1, String value2) {
            addCriterion("be_commentator_name not between", value1, value2, "beCommentatorName");
            return (Criteria) this;
        }

        public Criteria andCommentTimeIsNull() {
            addCriterion("comment_time is null");
            return (Criteria) this;
        }

        public Criteria andCommentTimeIsNotNull() {
            addCriterion("comment_time is not null");
            return (Criteria) this;
        }

        public Criteria andCommentTimeEqualTo(Date value) {
            addCriterion("comment_time =", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeNotEqualTo(Date value) {
            addCriterion("comment_time <>", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeGreaterThan(Date value) {
            addCriterion("comment_time >", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("comment_time >=", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeLessThan(Date value) {
            addCriterion("comment_time <", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeLessThanOrEqualTo(Date value) {
            addCriterion("comment_time <=", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeIn(List<Date> values) {
            addCriterion("comment_time in", values, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeNotIn(List<Date> values) {
            addCriterion("comment_time not in", values, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeBetween(Date value1, Date value2) {
            addCriterion("comment_time between", value1, value2, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeNotBetween(Date value1, Date value2) {
            addCriterion("comment_time not between", value1, value2, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentsIsNull() {
            addCriterion("comments is null");
            return (Criteria) this;
        }

        public Criteria andCommentsIsNotNull() {
            addCriterion("comments is not null");
            return (Criteria) this;
        }

        public Criteria andCommentsEqualTo(String value) {
            addCriterion("comments =", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotEqualTo(String value) {
            addCriterion("comments <>", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsGreaterThan(String value) {
            addCriterion("comments >", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsGreaterThanOrEqualTo(String value) {
            addCriterion("comments >=", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLessThan(String value) {
            addCriterion("comments <", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLessThanOrEqualTo(String value) {
            addCriterion("comments <=", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLike(String value) {
            addCriterion("comments like", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotLike(String value) {
            addCriterion("comments not like", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsIn(List<String> values) {
            addCriterion("comments in", values, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotIn(List<String> values) {
            addCriterion("comments not in", values, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsBetween(String value1, String value2) {
            addCriterion("comments between", value1, value2, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotBetween(String value1, String value2) {
            addCriterion("comments not between", value1, value2, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentTypeIsNull() {
            addCriterion("comment_type is null");
            return (Criteria) this;
        }

        public Criteria andCommentTypeIsNotNull() {
            addCriterion("comment_type is not null");
            return (Criteria) this;
        }

        public Criteria andCommentTypeEqualTo(Integer value) {
            addCriterion("comment_type =", value, "commentType");
            return (Criteria) this;
        }

        public Criteria andCommentTypeNotEqualTo(Integer value) {
            addCriterion("comment_type <>", value, "commentType");
            return (Criteria) this;
        }

        public Criteria andCommentTypeGreaterThan(Integer value) {
            addCriterion("comment_type >", value, "commentType");
            return (Criteria) this;
        }

        public Criteria andCommentTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("comment_type >=", value, "commentType");
            return (Criteria) this;
        }

        public Criteria andCommentTypeLessThan(Integer value) {
            addCriterion("comment_type <", value, "commentType");
            return (Criteria) this;
        }

        public Criteria andCommentTypeLessThanOrEqualTo(Integer value) {
            addCriterion("comment_type <=", value, "commentType");
            return (Criteria) this;
        }

        public Criteria andCommentTypeIn(List<Integer> values) {
            addCriterion("comment_type in", values, "commentType");
            return (Criteria) this;
        }

        public Criteria andCommentTypeNotIn(List<Integer> values) {
            addCriterion("comment_type not in", values, "commentType");
            return (Criteria) this;
        }

        public Criteria andCommentTypeBetween(Integer value1, Integer value2) {
            addCriterion("comment_type between", value1, value2, "commentType");
            return (Criteria) this;
        }

        public Criteria andCommentTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("comment_type not between", value1, value2, "commentType");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdIsNull() {
            addCriterion("offer_interview_id is null");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdIsNotNull() {
            addCriterion("offer_interview_id is not null");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdEqualTo(Integer value) {
            addCriterion("offer_interview_id =", value, "offerInterviewId");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdNotEqualTo(Integer value) {
            addCriterion("offer_interview_id <>", value, "offerInterviewId");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdGreaterThan(Integer value) {
            addCriterion("offer_interview_id >", value, "offerInterviewId");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("offer_interview_id >=", value, "offerInterviewId");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdLessThan(Integer value) {
            addCriterion("offer_interview_id <", value, "offerInterviewId");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdLessThanOrEqualTo(Integer value) {
            addCriterion("offer_interview_id <=", value, "offerInterviewId");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdIn(List<Integer> values) {
            addCriterion("offer_interview_id in", values, "offerInterviewId");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdNotIn(List<Integer> values) {
            addCriterion("offer_interview_id not in", values, "offerInterviewId");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdBetween(Integer value1, Integer value2) {
            addCriterion("offer_interview_id between", value1, value2, "offerInterviewId");
            return (Criteria) this;
        }

        public Criteria andOfferInterviewIdNotBetween(Integer value1, Integer value2) {
            addCriterion("offer_interview_id not between", value1, value2, "offerInterviewId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * offer，面经评论表
     * 
     * @author wcyong
     * 
     * @date 2020-06-14
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}